﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JobbJakt
{
  public  partial class ErrorTable
    {
      public static List<ErrorTable> GeErrorTables()
      {
          var query = JobbJaktDB.ErrorTables.Select(n => n).ToList();
          return query;
      }

      public static int InsertError(ErrorTable error)
      {
          JobbJaktDB.ErrorTables.Add(error);
          return JobbJaktDB.Save();
      }
    }
}
